package com.leesche.zcsp.node.web.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class SysUserTokenCriteria {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public SysUserTokenCriteria() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andTokenidIsNull() {
            addCriterion("tokenID is null");
            return (Criteria) this;
        }

        public Criteria andTokenidIsNotNull() {
            addCriterion("tokenID is not null");
            return (Criteria) this;
        }

        public Criteria andTokenidEqualTo(Long value) {
            addCriterion("tokenID =", value, "tokenid");
            return (Criteria) this;
        }

        public Criteria andTokenidNotEqualTo(Long value) {
            addCriterion("tokenID <>", value, "tokenid");
            return (Criteria) this;
        }

        public Criteria andTokenidGreaterThan(Long value) {
            addCriterion("tokenID >", value, "tokenid");
            return (Criteria) this;
        }

        public Criteria andTokenidGreaterThanOrEqualTo(Long value) {
            addCriterion("tokenID >=", value, "tokenid");
            return (Criteria) this;
        }

        public Criteria andTokenidLessThan(Long value) {
            addCriterion("tokenID <", value, "tokenid");
            return (Criteria) this;
        }

        public Criteria andTokenidLessThanOrEqualTo(Long value) {
            addCriterion("tokenID <=", value, "tokenid");
            return (Criteria) this;
        }

        public Criteria andTokenidIn(List<Long> values) {
            addCriterion("tokenID in", values, "tokenid");
            return (Criteria) this;
        }

        public Criteria andTokenidNotIn(List<Long> values) {
            addCriterion("tokenID not in", values, "tokenid");
            return (Criteria) this;
        }

        public Criteria andTokenidBetween(Long value1, Long value2) {
            addCriterion("tokenID between", value1, value2, "tokenid");
            return (Criteria) this;
        }

        public Criteria andTokenidNotBetween(Long value1, Long value2) {
            addCriterion("tokenID not between", value1, value2, "tokenid");
            return (Criteria) this;
        }

        public Criteria andUseridIsNull() {
            addCriterion("UserID is null");
            return (Criteria) this;
        }

        public Criteria andUseridIsNotNull() {
            addCriterion("UserID is not null");
            return (Criteria) this;
        }

        public Criteria andUseridEqualTo(Long value) {
            addCriterion("UserID =", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridNotEqualTo(Long value) {
            addCriterion("UserID <>", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridGreaterThan(Long value) {
            addCriterion("UserID >", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridGreaterThanOrEqualTo(Long value) {
            addCriterion("UserID >=", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridLessThan(Long value) {
            addCriterion("UserID <", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridLessThanOrEqualTo(Long value) {
            addCriterion("UserID <=", value, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridIn(List<Long> values) {
            addCriterion("UserID in", values, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridNotIn(List<Long> values) {
            addCriterion("UserID not in", values, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridBetween(Long value1, Long value2) {
            addCriterion("UserID between", value1, value2, "userid");
            return (Criteria) this;
        }

        public Criteria andUseridNotBetween(Long value1, Long value2) {
            addCriterion("UserID not between", value1, value2, "userid");
            return (Criteria) this;
        }

        public Criteria andTokenIsNull() {
            addCriterion("token is null");
            return (Criteria) this;
        }

        public Criteria andTokenIsNotNull() {
            addCriterion("token is not null");
            return (Criteria) this;
        }

        public Criteria andTokenEqualTo(String value) {
            addCriterion("token =", value, "token");
            return (Criteria) this;
        }

        public Criteria andTokenNotEqualTo(String value) {
            addCriterion("token <>", value, "token");
            return (Criteria) this;
        }

        public Criteria andTokenGreaterThan(String value) {
            addCriterion("token >", value, "token");
            return (Criteria) this;
        }

        public Criteria andTokenGreaterThanOrEqualTo(String value) {
            addCriterion("token >=", value, "token");
            return (Criteria) this;
        }

        public Criteria andTokenLessThan(String value) {
            addCriterion("token <", value, "token");
            return (Criteria) this;
        }

        public Criteria andTokenLessThanOrEqualTo(String value) {
            addCriterion("token <=", value, "token");
            return (Criteria) this;
        }

        public Criteria andTokenLike(String value) {
            addCriterion("token like", value, "token");
            return (Criteria) this;
        }

        public Criteria andTokenNotLike(String value) {
            addCriterion("token not like", value, "token");
            return (Criteria) this;
        }

        public Criteria andTokenIn(List<String> values) {
            addCriterion("token in", values, "token");
            return (Criteria) this;
        }

        public Criteria andTokenNotIn(List<String> values) {
            addCriterion("token not in", values, "token");
            return (Criteria) this;
        }

        public Criteria andTokenBetween(String value1, String value2) {
            addCriterion("token between", value1, value2, "token");
            return (Criteria) this;
        }

        public Criteria andTokenNotBetween(String value1, String value2) {
            addCriterion("token not between", value1, value2, "token");
            return (Criteria) this;
        }

        public Criteria andIntdata1IsNull() {
            addCriterion("intdata1 is null");
            return (Criteria) this;
        }

        public Criteria andIntdata1IsNotNull() {
            addCriterion("intdata1 is not null");
            return (Criteria) this;
        }

        public Criteria andIntdata1EqualTo(Integer value) {
            addCriterion("intdata1 =", value, "intdata1");
            return (Criteria) this;
        }

        public Criteria andIntdata1NotEqualTo(Integer value) {
            addCriterion("intdata1 <>", value, "intdata1");
            return (Criteria) this;
        }

        public Criteria andIntdata1GreaterThan(Integer value) {
            addCriterion("intdata1 >", value, "intdata1");
            return (Criteria) this;
        }

        public Criteria andIntdata1GreaterThanOrEqualTo(Integer value) {
            addCriterion("intdata1 >=", value, "intdata1");
            return (Criteria) this;
        }

        public Criteria andIntdata1LessThan(Integer value) {
            addCriterion("intdata1 <", value, "intdata1");
            return (Criteria) this;
        }

        public Criteria andIntdata1LessThanOrEqualTo(Integer value) {
            addCriterion("intdata1 <=", value, "intdata1");
            return (Criteria) this;
        }

        public Criteria andIntdata1In(List<Integer> values) {
            addCriterion("intdata1 in", values, "intdata1");
            return (Criteria) this;
        }

        public Criteria andIntdata1NotIn(List<Integer> values) {
            addCriterion("intdata1 not in", values, "intdata1");
            return (Criteria) this;
        }

        public Criteria andIntdata1Between(Integer value1, Integer value2) {
            addCriterion("intdata1 between", value1, value2, "intdata1");
            return (Criteria) this;
        }

        public Criteria andIntdata1NotBetween(Integer value1, Integer value2) {
            addCriterion("intdata1 not between", value1, value2, "intdata1");
            return (Criteria) this;
        }

        public Criteria andIntdata2IsNull() {
            addCriterion("intdata2 is null");
            return (Criteria) this;
        }

        public Criteria andIntdata2IsNotNull() {
            addCriterion("intdata2 is not null");
            return (Criteria) this;
        }

        public Criteria andIntdata2EqualTo(Integer value) {
            addCriterion("intdata2 =", value, "intdata2");
            return (Criteria) this;
        }

        public Criteria andIntdata2NotEqualTo(Integer value) {
            addCriterion("intdata2 <>", value, "intdata2");
            return (Criteria) this;
        }

        public Criteria andIntdata2GreaterThan(Integer value) {
            addCriterion("intdata2 >", value, "intdata2");
            return (Criteria) this;
        }

        public Criteria andIntdata2GreaterThanOrEqualTo(Integer value) {
            addCriterion("intdata2 >=", value, "intdata2");
            return (Criteria) this;
        }

        public Criteria andIntdata2LessThan(Integer value) {
            addCriterion("intdata2 <", value, "intdata2");
            return (Criteria) this;
        }

        public Criteria andIntdata2LessThanOrEqualTo(Integer value) {
            addCriterion("intdata2 <=", value, "intdata2");
            return (Criteria) this;
        }

        public Criteria andIntdata2In(List<Integer> values) {
            addCriterion("intdata2 in", values, "intdata2");
            return (Criteria) this;
        }

        public Criteria andIntdata2NotIn(List<Integer> values) {
            addCriterion("intdata2 not in", values, "intdata2");
            return (Criteria) this;
        }

        public Criteria andIntdata2Between(Integer value1, Integer value2) {
            addCriterion("intdata2 between", value1, value2, "intdata2");
            return (Criteria) this;
        }

        public Criteria andIntdata2NotBetween(Integer value1, Integer value2) {
            addCriterion("intdata2 not between", value1, value2, "intdata2");
            return (Criteria) this;
        }

        public Criteria andSdata3IsNull() {
            addCriterion("sdata3 is null");
            return (Criteria) this;
        }

        public Criteria andSdata3IsNotNull() {
            addCriterion("sdata3 is not null");
            return (Criteria) this;
        }

        public Criteria andSdata3EqualTo(String value) {
            addCriterion("sdata3 =", value, "sdata3");
            return (Criteria) this;
        }

        public Criteria andSdata3NotEqualTo(String value) {
            addCriterion("sdata3 <>", value, "sdata3");
            return (Criteria) this;
        }

        public Criteria andSdata3GreaterThan(String value) {
            addCriterion("sdata3 >", value, "sdata3");
            return (Criteria) this;
        }

        public Criteria andSdata3GreaterThanOrEqualTo(String value) {
            addCriterion("sdata3 >=", value, "sdata3");
            return (Criteria) this;
        }

        public Criteria andSdata3LessThan(String value) {
            addCriterion("sdata3 <", value, "sdata3");
            return (Criteria) this;
        }

        public Criteria andSdata3LessThanOrEqualTo(String value) {
            addCriterion("sdata3 <=", value, "sdata3");
            return (Criteria) this;
        }

        public Criteria andSdata3Like(String value) {
            addCriterion("sdata3 like", value, "sdata3");
            return (Criteria) this;
        }

        public Criteria andSdata3NotLike(String value) {
            addCriterion("sdata3 not like", value, "sdata3");
            return (Criteria) this;
        }

        public Criteria andSdata3In(List<String> values) {
            addCriterion("sdata3 in", values, "sdata3");
            return (Criteria) this;
        }

        public Criteria andSdata3NotIn(List<String> values) {
            addCriterion("sdata3 not in", values, "sdata3");
            return (Criteria) this;
        }

        public Criteria andSdata3Between(String value1, String value2) {
            addCriterion("sdata3 between", value1, value2, "sdata3");
            return (Criteria) this;
        }

        public Criteria andSdata3NotBetween(String value1, String value2) {
            addCriterion("sdata3 not between", value1, value2, "sdata3");
            return (Criteria) this;
        }

        public Criteria andSdata4IsNull() {
            addCriterion("sdata4 is null");
            return (Criteria) this;
        }

        public Criteria andSdata4IsNotNull() {
            addCriterion("sdata4 is not null");
            return (Criteria) this;
        }

        public Criteria andSdata4EqualTo(String value) {
            addCriterion("sdata4 =", value, "sdata4");
            return (Criteria) this;
        }

        public Criteria andSdata4NotEqualTo(String value) {
            addCriterion("sdata4 <>", value, "sdata4");
            return (Criteria) this;
        }

        public Criteria andSdata4GreaterThan(String value) {
            addCriterion("sdata4 >", value, "sdata4");
            return (Criteria) this;
        }

        public Criteria andSdata4GreaterThanOrEqualTo(String value) {
            addCriterion("sdata4 >=", value, "sdata4");
            return (Criteria) this;
        }

        public Criteria andSdata4LessThan(String value) {
            addCriterion("sdata4 <", value, "sdata4");
            return (Criteria) this;
        }

        public Criteria andSdata4LessThanOrEqualTo(String value) {
            addCriterion("sdata4 <=", value, "sdata4");
            return (Criteria) this;
        }

        public Criteria andSdata4Like(String value) {
            addCriterion("sdata4 like", value, "sdata4");
            return (Criteria) this;
        }

        public Criteria andSdata4NotLike(String value) {
            addCriterion("sdata4 not like", value, "sdata4");
            return (Criteria) this;
        }

        public Criteria andSdata4In(List<String> values) {
            addCriterion("sdata4 in", values, "sdata4");
            return (Criteria) this;
        }

        public Criteria andSdata4NotIn(List<String> values) {
            addCriterion("sdata4 not in", values, "sdata4");
            return (Criteria) this;
        }

        public Criteria andSdata4Between(String value1, String value2) {
            addCriterion("sdata4 between", value1, value2, "sdata4");
            return (Criteria) this;
        }

        public Criteria andSdata4NotBetween(String value1, String value2) {
            addCriterion("sdata4 not between", value1, value2, "sdata4");
            return (Criteria) this;
        }

        public Criteria andIntimeIsNull() {
            addCriterion("inTime is null");
            return (Criteria) this;
        }

        public Criteria andIntimeIsNotNull() {
            addCriterion("inTime is not null");
            return (Criteria) this;
        }

        public Criteria andIntimeEqualTo(Date value) {
            addCriterion("inTime =", value, "intime");
            return (Criteria) this;
        }

        public Criteria andIntimeNotEqualTo(Date value) {
            addCriterion("inTime <>", value, "intime");
            return (Criteria) this;
        }

        public Criteria andIntimeGreaterThan(Date value) {
            addCriterion("inTime >", value, "intime");
            return (Criteria) this;
        }

        public Criteria andIntimeGreaterThanOrEqualTo(Date value) {
            addCriterion("inTime >=", value, "intime");
            return (Criteria) this;
        }

        public Criteria andIntimeLessThan(Date value) {
            addCriterion("inTime <", value, "intime");
            return (Criteria) this;
        }

        public Criteria andIntimeLessThanOrEqualTo(Date value) {
            addCriterion("inTime <=", value, "intime");
            return (Criteria) this;
        }

        public Criteria andIntimeIn(List<Date> values) {
            addCriterion("inTime in", values, "intime");
            return (Criteria) this;
        }

        public Criteria andIntimeNotIn(List<Date> values) {
            addCriterion("inTime not in", values, "intime");
            return (Criteria) this;
        }

        public Criteria andIntimeBetween(Date value1, Date value2) {
            addCriterion("inTime between", value1, value2, "intime");
            return (Criteria) this;
        }

        public Criteria andIntimeNotBetween(Date value1, Date value2) {
            addCriterion("inTime not between", value1, value2, "intime");
            return (Criteria) this;
        }

        public Criteria andOuttimeIsNull() {
            addCriterion("OutTime is null");
            return (Criteria) this;
        }

        public Criteria andOuttimeIsNotNull() {
            addCriterion("OutTime is not null");
            return (Criteria) this;
        }

        public Criteria andOuttimeEqualTo(Date value) {
            addCriterion("OutTime =", value, "outtime");
            return (Criteria) this;
        }

        public Criteria andOuttimeNotEqualTo(Date value) {
            addCriterion("OutTime <>", value, "outtime");
            return (Criteria) this;
        }

        public Criteria andOuttimeGreaterThan(Date value) {
            addCriterion("OutTime >", value, "outtime");
            return (Criteria) this;
        }

        public Criteria andOuttimeGreaterThanOrEqualTo(Date value) {
            addCriterion("OutTime >=", value, "outtime");
            return (Criteria) this;
        }

        public Criteria andOuttimeLessThan(Date value) {
            addCriterion("OutTime <", value, "outtime");
            return (Criteria) this;
        }

        public Criteria andOuttimeLessThanOrEqualTo(Date value) {
            addCriterion("OutTime <=", value, "outtime");
            return (Criteria) this;
        }

        public Criteria andOuttimeIn(List<Date> values) {
            addCriterion("OutTime in", values, "outtime");
            return (Criteria) this;
        }

        public Criteria andOuttimeNotIn(List<Date> values) {
            addCriterion("OutTime not in", values, "outtime");
            return (Criteria) this;
        }

        public Criteria andOuttimeBetween(Date value1, Date value2) {
            addCriterion("OutTime between", value1, value2, "outtime");
            return (Criteria) this;
        }

        public Criteria andOuttimeNotBetween(Date value1, Date value2) {
            addCriterion("OutTime not between", value1, value2, "outtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIsNull() {
            addCriterion("CreateTime is null");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIsNotNull() {
            addCriterion("CreateTime is not null");
            return (Criteria) this;
        }

        public Criteria andCreatetimeEqualTo(Date value) {
            addCriterion("CreateTime =", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotEqualTo(Date value) {
            addCriterion("CreateTime <>", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeGreaterThan(Date value) {
            addCriterion("CreateTime >", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeGreaterThanOrEqualTo(Date value) {
            addCriterion("CreateTime >=", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeLessThan(Date value) {
            addCriterion("CreateTime <", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeLessThanOrEqualTo(Date value) {
            addCriterion("CreateTime <=", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIn(List<Date> values) {
            addCriterion("CreateTime in", values, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotIn(List<Date> values) {
            addCriterion("CreateTime not in", values, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeBetween(Date value1, Date value2) {
            addCriterion("CreateTime between", value1, value2, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotBetween(Date value1, Date value2) {
            addCriterion("CreateTime not between", value1, value2, "createtime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}